package com.qfjy;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;


@MapperScan(basePackages = {"com.qfjy.mapper"})
@EnableFeignClients //扫描所有带@FeignClient注解的类 进行容器Bean管理

@SpringBootApplication
@EnableEurekaClient // @EnableDiscoveryClient //Eureka client
@EnableHystrix //Hystrix组件注解生效 开启断路器 Hystrix注解  @EnableCircuitBreaker

/**
 * 组合注解
 * @SpringBootApplication
 * @EnableDiscoveryClient
 * @EnableCircuitBreaker
 * @SpringCloudApplication
 */

public class QfMeetingApplication {

    public static void main(String[] args) {
        SpringApplication.run(QfMeetingApplication.class, args);
    }

}
